]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix showing input volume
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 20 Oct 2010 19:15:24 +0000 (21:15 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 20 Oct 2010 19:30:26 +0000 (21:30 +0200)
Fix two typos in code that decided whether to show input volume and
mute switch.

js/ui/status/volume.js

index 48cb6a3993d2b3d7cb91bb75009417d9b33d7601..8753c718b342bfec5dae3757ba53e4fba6d4270f 100644 (file)
@@ -117,9 +117,9 @@ Indicator.prototype = {
         // only show input widgets if any application is recording audio
         let showInput = false;
         let recordingApps = this._control.get_source_outputs();
-        if (this._source && recordingApps) {
-            for (let i = 0; i < recordingApp.length; i++) {
-                let outputStream = recordingApp[i];
+        if (this._input && recordingApps) {
+            for (let i = 0; i < recordingApps.length; i++) {
+                let outputStream = recordingApps[i];
                 let id = outputStream.get_application_id();
                 // but skip gnome-volume-control and pavucontrol
                 // (that appear as recording because they show the input level)